import 'package:cached_network_image/cached_network_image.dart';
import 'package:flutter/cupertino.dart';
import 'package:kepu/util/constant/constants.dart';

Widget gameImage({required Size size,required String imageUrl}){
  return Container(
    height: size.height * 0.35,
    decoration: BoxDecoration(
      borderRadius: BorderRadius.circular(50),
      image: DecorationImage(
        image: CachedNetworkImageProvider(
          imageUrlPrefix+ imageUrl,
        ),
        fit: BoxFit.cover,
      ),
    ),
  );
}